package cn.firecode.data_collect.service;

import cn.firecode.data_collect.domain.entity.CollectDataT;
import cn.firecode.data_collect.domain.entity.CollectUserT;
import cn.firecode.data_collect.exception.DcsException;
import cn.firecode.data_collect.utils.DcsFileEnum;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.InputStream;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yangfan
 * @since 2019-12-11
 */
public interface CollectDataTService extends IService<CollectDataT> {
    public boolean updateParToRedis(Integer currentUserId,CollectDataT dataT)throws DcsException;
    public boolean createDataToRedis(Integer currentUserId, CollectDataT dataT)throws DcsException;
    public CollectDataT getDataFromRedis(Integer customerId);
    public boolean deleteDataFormRedis(Integer customerId)throws DcsException;
    public boolean storeRemoteFile(InputStream fileInputStream, DcsFileEnum fileType,Integer customerId,String fileExname)throws DcsException;
    public boolean deleteLocalCacheFile(Integer customerId)throws DcsException;
    public boolean chechFileMD5(InputStream fileInputStream, String originalMD5);
    public boolean storeCollectTypeToRedis(Integer currentUserId, Integer collectType)throws DcsException;
    public Integer getCollectTypeFormRedis(Integer currentUserId);
    public boolean deleteCollectTypeFormRedis(Integer currentUserId)throws DcsException;
    public boolean createLineChartForForceZ(Integer currentUserId)throws DcsException;
    public boolean checkDataIsIntact(Integer currentUserId)throws DcsException;
    public boolean destroyCacheFileFastDfs(Integer currentUserId)throws DcsException;
    public void createDataToRedis(int count);
    public int insertAndGetId(CollectDataT dataT);

}
